import { CascaderPanelComponent } from './cascader-panel/cascader-panel.component';
import { Component, OnInit, Input, Optional } from '@angular/core';
import { dropAnimation } from '../shared/animation/index';

@Component({
  selector: 'el-cascader-menu',
  templateUrl: './cascader-menu.component.html',
  animations: [dropAnimation],
})
export class CascaderMenuComponent implements OnInit {
  root: any;
  @Input() nodes:Array<any> = [];
  @Input() index:number=0;

  constructor(@Optional() root: CascaderPanelComponent){ 
    this.root = root;
  }



  ngOnInit(): void {
    console.log(this.nodes)
  }

}
